package com.cd.javacxy.common.model.entity;

import com.cd.javacxy.common.model.enums.ExamChooseType;
import com.cd.javacxy.common.model.enums.StatusEnum;
import lombok.Data;

import java.time.Instant;
import java.util.ArrayList;
import java.util.List;

/**
 * cxy_exam实体类
 *
 * @author yhy
 */
@Data
public class CxyExam {
    /**
     * 主键
     */
    private Integer id;
    /**
     * 标题
     */
    private String examTitle;
    /**
     * 答案解析
     */
    private String analyse;
    /**
     * 分类
     */
    private Integer categoryId;
    /**
     * 1是单选2是多选
     */
    private ExamChooseType chooseType;
    /**
     * 发题人ID
     */
    private Integer userId;
    /**
     * 发题人头像
     */
    private String userIcon;
    /**
     * 发题人名称
     */
    private String userName;
    /**
     * 创建时间
     */
    private Instant createTime;
    /**
     * 0为未审核，1为审核
     */
    private StatusEnum status;
    private int examCount;

    private List<Integer> correctAnswerIds;

    private List<CxyExamDetail> examDetails = new ArrayList<>();
    private boolean isCorrect;

}
